﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NimLearning
{
    public static class StateDatabase
    {
        private static Dictionary<String, List<double>> data = new Dictionary<string,List<double>>();

        public static void AddScore(string key, double value)
        {
            data[key].Add(value);
        }

        public static double GetAverage(string key)
        {
            return data[key].Average();
        }
    }
}